package com.schoolcloud.social.service;

import com.schoolcloud.social.dto.PrivateMessageSaveDTO;
import com.schoolcloud.social.entity.ConversationParticipants;
import com.baomidou.mybatisplus.extension.service.IService;
import com.schoolcloud.social.vo.ConversationInfoVO;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
* @author hongmizfb
* @description 针对表【conversation_participants(会话参与者)】的数据库操作Service
* @createDate 2025-04-27 15:32:48
*/
public interface ConversationParticipantsService extends IService<ConversationParticipants> {

    List<ConversationInfoVO> getConversationListByUserId(String user);

    @Transactional
    void createMessage(PrivateMessageSaveDTO dto);
}
